package xin.marcher.wind.process.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Repository;
import xin.marcher.framework.mybatis.dao.BaseDAO;
import xin.marcher.wind.process.domain.entity.TradePlatformProcessNodeDO;
import xin.marcher.wind.process.mapper.TradePlatformProcessNodeMapper;

import java.util.List;

/**
 * <p>
 * 交易平台流程节点表 DAO
 * </p>
 *
 * 
 */
@Repository
public class TradePlatformProcessNodeDAO extends BaseDAO<TradePlatformProcessNodeMapper, TradePlatformProcessNodeDO> {

    /**
     * 根据流程ID查询流程节点信息
     * @param processId
     * @return
     */
    public List<TradePlatformProcessNodeDO> listByProcessId(Long processId) {
        LambdaQueryWrapper<TradePlatformProcessNodeDO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TradePlatformProcessNodeDO::getProcessId, processId);
        return list(queryWrapper);
    }

}
